import 'package:wch/generated/json/base/json_field.dart';
import 'package:wch/generated/json/device_list_entity.g.dart';
import 'dart:convert';
export 'package:wch/generated/json/device_list_entity.g.dart';

@JsonSerializable()
class DeviceListEntity {
	String? code;
	String? msg;
	List<DeviceListData>? data;

	DeviceListEntity();

	factory DeviceListEntity.fromJson(Map<String, dynamic> json) => $DeviceListEntityFromJson(json);

	Map<String, dynamic> toJson() => $DeviceListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class DeviceListData {
	String? id;
	String? sickPersonId;
	String? deviceBluetoothNumber;
	String? number;
	String? mobile;
	String? sickPersonSex;
	String? sickPersonName;

	DeviceListData();

	factory DeviceListData.fromJson(Map<String, dynamic> json) => $DeviceListDataFromJson(json);

	Map<String, dynamic> toJson() => $DeviceListDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}